﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;
//MinhKhoa
namespace BUS
{
    public class LoaiTrangTriBUS
    {
        public List<shop_loaitrangtri> LayTatCaLoaiTrangTri()
        {
            LoaiTrangTriDAO dao = new LoaiTrangTriDAO();
            return dao.LayTatCaLoaiTrangTri();
        }
        public void ThemLoaiTrangTri(shop_loaitrangtri addObject)
        {
            LoaiTrangTriDAO dao = new LoaiTrangTriDAO();
            dao.ThemLoaiTrangTri(addObject);
        }
        public void XoaLoaiTrangTri(int Ma)
        {
            LoaiTrangTriDAO dao = new LoaiTrangTriDAO();
            dao.XoaLoaiTrangTri(Ma);
        }
        public void CapNhatLoaiTrangTri(int Ma, shop_loaitrangtri editObject)
        {
            LoaiTrangTriDAO dao = new LoaiTrangTriDAO();
            dao.CapNhatLoaiTrangTri(Ma, editObject);
        }
    }
}
